﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace scheduleMVC.Models
{
    [Table("Customer")]
    public class CustomerModel
    {
        public CustomerModel()
        {
            Tasks = new List<TasksModel>();
        }

         [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int CustomerId { get; set; }

         [Required]
         [StringLength(128)]
         public string UserId { get; set; }

         [StringLength(10)]
         [Display(Name = "Name Prefix")]
         public string Name_Prefix { get; set; }

         [StringLength(50)]
         [Display(Name = "Last Name")]
         public string Last_Name { get; set; }

         [StringLength(50)]
         public string Middle_name { get; set; }

         [StringLength(50)]
         public string First_Name { get; set; }

         [StringLength(255)]
         public string Business_Name { get; set; }

         [StringLength(255)]
         public string LegalName { get; set; }

         [StringLength(15)]
         public string Phone_Number { get; set; }

         [StringLength(15)]
         public string Cell_Phone { get; set; }

         [StringLength(15)]
         public string Fax { get; set; }

         [StringLength(50)]
         public string Email { get; set; }

         [StringLength(255)]
         public string Customer_Account { get; set; }

         public Nullable<DateTime> DateStarted { get; set; }
         public Nullable<DateTime> DateEnded { get; set; }
         [StringLength(15)]
         public String BillingType { get; set; }


        public List<TasksModel> Tasks { get; set; }
        public List<FileModel> Files { get; set; }
  
   
        
    }
}